-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Official GF names by default #4241
Official GF names by default #4241
Conversation
CF raised TM pocket in the bag and menus in PokéMarts that sell TMs as two other places to check before this can be un-drafted. If there are any other places, please raise them. Move relearner? Move tutor? |
I wonder if this needs a config - I can imagine this isn't within everyone's stilistical goals. I'd also argue that any character that exists in the normal font should exist in this font too; there's quite some people with translated hacks (I've definitely seen French, Spanish and German) that'd get understandably upset if their diacritics are missing here. Some text messages with move names buffered in string vars may overflow, perhaps? Did we check contests? The HGSS dex (move lists, but also move-based evolutions)? |
Just leaving a comment here: people may expect species names to get the same treatment. I think this would require a If somebody else would like to tackle species names, they're welcome to contribute to this PR (or raise a separate PR) :) |
I have a small idea which I guess is in line with Jasper's suggestion above. How about adding a function that takes an original font label as a parameter (Ex A function that would allow a user to quickly disable the usage of the narrower font if they so chose to basically. |
Why would anybody want to disable the narrower font, thus causing their text to clip? I can imagine it being helpful to say "I'd rather the strings be shorter, so they don't exceed the box size" (which is what I'm planning on having a function that would technically give a single place that lists all the fonts to test when dynamically narrowing fonts, so it's not that it would be hard to implement a config item... I just don't see how there's a use-case for having one. I guess somebody else can come PR a config later if they really want to. |
It's exactly because of that. I'm not going to sugarcoat it, this doesn't look good to me, I find it hard to read, so as a user I know that I would like to have a quick way to disable it:
Ah. If |
It doesn't exactly disable the narrower font, but because we use the widest font which will fit all the letters, the narrower font should never be used (unless there are shorter move names that currently clip, but I don't think that's the case?) I think we're in agreement, but just for anybody else coming along—some of the letters being cut off looks like crap, so I don't think "the narrower font looks crap" is a good enough argument for a config item that chooses to cut letters off. |
I didn't express myself clearly enough and I also didn't understand the effect of the changes, so that was entirely my bad. What I feared was to have that ugly Stomping Tantrum. Now, if the narrower font is only ever used based on the width of the total amount of glyphs meaning that compact move names would use the regular font as usual, then I have no complaints and my suggestion was pointless from the start. I apologize, it was my bad :) |
Added support for contests and TM bag pockets. Have not yet added support for the move relearner because that uses a generic list menu and so the change is going to be a little more invasive. If somebody did desperately want to reintroduce clipping they could stub out Note that there are failing tests because some move names do clip in contests, e.g. First Impression (only the first failure is reported). |
Added move relearner, and also the ability to do the same font narrowing on any list template with The remaining questions are:
|
Ready for review. I'll rebase this before it's merged. I introduced A |
1e4540d
to
ef52486
Compare
Rebased. Hopefully nobody has any review comments, lol! E: Unfortunately they did. So I need to rebase this again, no biggie! :) |
graphics/fonts/latin_narrower.png
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor thing but would you be willing to remove the whitespace after "i"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's fine in the summary screen, but I found it really tricky to notice the i
in things like ain
without that space, to my eyes the dot looks like a diacritic on the n
:
But other people can feel free to weigh in on that issue.
E: Also we need to make some trade-offs with some of the i
s that have diacritics (í
, ì
, ï
, î
), should those be 3px wide, or stay at 4px? And if shrunk, how?
do we want this for 1.8 or 1.9? |
If 1.9, might be worth having a I think it makes sense to let this cook for a release cycle on |
Update: this is now targeting 1.9. My hope is to support official names for abilities, items, and species too. |
There we go, should be all ready to go now 🤞 |
a6d0df0
to
e0d13ca
Compare
Rebased onto |
e0d13ca
to
3e223a3
Compare
We're almost there xD |
PARAMETRIZE_LABEL is like PARAMETRIZE, except that it allows the user to provide a label which will be displayed in the test name line. This is useful for tracking _which_ PARAMETRIZE case failed in the situation where the numbers are unwieldy.
In contests, even FONT_NARROWER isn't sufficient to prevent clipping in all cases. e.g. Stomping Tantrum clips. We have decided to accept that cost to make the rest of the user experience better, but downstream projects that don't like that trade-off can either a) alter the contest UI, or b) set B_EXPANDED_MOVE_NAMES to FALSE.
In the Pokémon Storage System, even FONT_SMALL_NARROWER isn't sufficient to prevent clipping in all cases. e.g. Unremarkable Teacup clips. We have decided to accept that cost to make the rest of the user experience better, but downstream projects that don't like that trade-off can either a) alter the Pokémon Storage System UI, or b) set I_EXPANDED_ITEM_NAMES to FALSE.
3e223a3
to
664fe90
Compare
Okay, fixed the missing |
Use official GF type/species/move/item names by default, instead of the unofficial run-together names that have been the default until now. This is achieved by introducing some narrower fonts, allowing us to fit more characters into the same space; we dynamically scale down the font width as needed in UIs that display names (e.g. the Pokemon Summary Screen and Battle Interface).
Species
Items
Moves
Abilities (already expanded by default)
Types
Credits: @mrgriffin
FONT_NARROWER
tweaks,FONT_SHORT_NARROW
/FONT_SMALL_NARROWER
graphics, code; @ZnogyroPFONT_NARROWER
graphics; @cfmnephrite idea.Changelog:
FONT_NARROWER
,FONT_SMALL_NARROWER
, andFONT_SHORT_NARROW
.GetFontIdToFit
—see this PR's changes for examples of that..fontIdMayNarrow = TRUE
on the list template.Future Work:
SaveBlock3
?).Closes #4249, #4248, #3915.